<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>礼品兑换 | <?php echo ($site_name_cn); ?>安全应急响应中心</title>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta name="description" content="<?php echo ($site_name_cn); ?>安全应急响应中心,<?php echo ($site_name_en); ?> Security Response Center">
        <meta name="keywords" content="<?php echo ($site_name_cn); ?>,<?php echo ($site_name_en); ?>,安全团队,应急响应,<?php echo ($site_name_cn); ?>安全应急响应中心,<?php echo ($site_name_en); ?> Security Response Center">
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no">
        <link rel="icon" href="/Public/Index/images/logo.ico">
        <link rel="stylesheet" href="/Public/Index/css/main.css">
        <!--[if (gte IE 6)&(lte IE 8)]>
        兼容 CSS3 选择器
        <script type="text/javascript" src="/Public/Index/js/selectivizr.min.js"></script>
        兼容 media query
        <script type="text/javascript" src="/Public/Index/js/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="header">
            <div>
                <div class="logo">
                    <a href="">
                        <div class="logo_pic">
                        </div>
                        <div class="logo_name">
                            <p><?php echo ($site_name_cn); ?>安全应急响应中心</p>
                            <p><?php echo ($site_name_en); ?> Security Response Center</p>
                        </div>
                    </a>
                </div>

                <div class="userpanel">
                    <div class="userpanel_line">
                        <div></div>
                    </div>
					<?php if(empty($username)): ?><div class="userpanel_login" style="display:block">
                        <a class="mod-btn mod-btn-black login-btn-1 login-qq" href="/user.php?m=user&c=post&a=add">登录账户</a>
                    </div>
					<?php else: ?> 
                    <div class="userpanel_user">
                        <img class="user_avatar mod-avatar-30" src="/Public/Uploads/<?php echo session('avatar');?>" alt="">
                        <span class="user_username"><?php echo session('username'); if(session('mnum') == 0): else: ?><i class="i-header-message"><?php echo session('mnum');?></i><?php endif; ?></span>
                        <i class="user_arrow"></i>
                        <div class="user_menu">
                            <ul class="menu_list">
                                <li class="list_item list_item-user">
                                    <a href="/user.php">
                                        <i class="item_icon"></i>
                                        <span class="item_text">个人主页</span>
                                    </a>
                                </li>
                                <li class="list_item list_item-message">
                                    <a href="/user.php?m=user&c=message&a=index">
                                        <i class="item_icon"></i>
                                        <span class="item_text">消息中心</span>
                                        <i class="item_icon-message"><?php echo session('mnum');?></i>
                                    </a>
                                </li>
                                <li class="list_item list_item-account">
                                    <a href="/user.php?m=user&c=info&a=index">
                                        <i class="item_icon"></i>
                                        <span class="item_text">账户设置</span>
                                    </a>
                                </li>
                                <li class="list_item list_item-logout">
                                    <a href="<?php echo U('login/logout');?>">
                                        <i class="item_icon"></i>
                                        <span class="item_text">注销</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div><?php endif; ?>
				</div>

                <div class="nav">
                    <ul>
                        <li class="[index_banner]"><a href="<?php echo U('index/index');?>">首页</a></li>
                        <li class="[banner_selected]"><a href="/user.php?m=user&c=post&a=add">提交漏洞</a></li>
                        <li class="[annoucment_banner]"><a href="<?php echo U('page/index');?>">公告</a></li>
						<li class="[blog_banner]"><a href="<?php echo U('blog/index');?>">博客</a></li>
						<li class="[hall_banner]"><a href="<?php echo U('hall/index');?>">贡献榜</a></li>
                        <li class="nav_item-active"><a href="<?php echo U('gift/index');?>">礼品兑换</a></li>
                    </ul>
                </div>
            </div>
        </div>

<div class="container container-shop">
            <div>
                <!-- section-subnav 标题-->
                <div class="section section-subnav">
                    <div class="section_subnav">
                        <p class="subnav_title"><a href="#">礼品兑换</a></p>
                        <div class="subnav_bgtext"></div>
                    </div>
                </div>

                <div class="section section-sort">
                    <div class="section_sort">
                        <div class="sort_row">
                            <div class="row_header">
                                <span>分&nbsp;&nbsp;&nbsp;&nbsp;类:</span>
                            </div>
                            <div class="row_body">
                                <ul class="body_list">
                                    <li id="category_all" class="list_item list_item-active"><a href="<?php echo U('gift/index');?>">全部</a></li>
                                    <li id="category_cash" class="list_item"><a href="javascript:query_by_category('cash')">现金奖励</a></li>
                                    <li id="category_digital" class="list_item"><a href="javascript:query_by_category('digital')">数码产品</a></li>
                                    <li id="category_book" class="list_item"><a href="javascript:query_by_category('book')">专业书籍</a></li>
                                    <li id="category_culture" class="list_item"><a href="javascript:query_by_category('culture')">文化周边</a></li>
									<li id="category_others" class="list_item"><a href="javascript:query_by_category('others')">其他礼品</a></li>
                                </ul>
                            </div>
                            <!--<div class="row_footer">
                                <a href=""><span>更多</span><i></i></a>
                            </div>-->
                        </div>

                        <div class="sort_row">
                            <div class="row_header">
                                <span>安全币:</span>
                            </div>
                            <div class="row_body">
                                <ul class="body_list">
                                    <li id="price_all" class="list_item list_item-active"><a href="<?php echo U('gift/index');?>">全部</a></li>
                                    <li id="price_0" class="list_item"><a href="javascript:query_by_price(0,100);">0~100</a></li>
                                    <li id="price_100" class="list_item"><a href="javascript:query_by_price(100,300);">100~300</a></li>
                                    <li id="price_300" class="list_item"><a href="javascript:query_by_price(300,800);">300~800</a></li>
                                    <li id="price_800" class="list_item"><a href="javascript:query_by_price(800,1600);">800~1600</a></li>
                                    <li id="price_1600" class="list_item"><a href="javascript:query_by_price(1600,10000);">1600以上</a></li>
                                </ul>
                            </div>
<!--                             <div class="row_footer">
                                <a href=""><span>更多</span><i></i></a>
                            </div> -->
                        </div>
                    </div>
                </div>

                <div class="section section-sieve">
                    <div class="section_sieve">
                        <div class="sieve_row">
                            <div class="row_select">
                                <ul>
                                    <li id="suggested_val" class="select_item select_item-active"><a href="<?php echo U('gift/index');?>">推荐</a></li>
                                    <!--<li class="select_item"><a href="">新品</a></li>-->
                                    <li id="order_val" order="desc" class="select_item"><a href="javascript:order_by_price();">价格<i class="i-arrow-price-up"></i><i class="i-arrow-price-down" style="display:block;"></i></a></li>
                                    <!--<li class="select_item"><a href="">兑换最多</a></li>-->
                                </ul>
                            </div>
							<?php if(!empty($username)): ?><div class="row_checkbox">
                                <!--<label><input class="input-checkbox" type="checkbox" name="" value="">只显示有货</label>-->
                                <label><input id="check_my_redeem" onchange="check_my_redeem();" class="input-checkbox" type="checkbox" name="" value="">显示我能兑换的</label>
                            </div><?php endif; ?>
                        </div>
                    </div>
                </div>
			
                <div class="section section-shop">
                    <div class="section_shop">
                        <ul id="mod-itemlist-shop" class="mod-itemlist-shop">
							<?php if(is_array($gift)): foreach($gift as $key=>$v): if($v["stock"] > 0): ?><li class="itemlist_item mod-floatblock">
									<a href="./user.php?m=user&c=gift&a=add&gid=<?php echo ($v["id"]); ?>" target="_blank">
										<div class="item_pic">
											<img src="<?php echo ($v["url"]); ?>" alt="">
										</div>
										<p class="item_name">
											<?php echo ($v["title"]); ?>
										</p>
										<div class="flag"></div>
									</a>
									<p class="item_content">
										安全币<span class="item_cost"> <?php echo ($v["price"]); ?> </span>库存<span class="item_exchangednum"> <?php echo ($v["stock"]); ?> </span>个
									</p>
									<div class="item_state">
										<p class="state_text"><?php echo ($v["title"]); ?></p>
										<a class="mod-btn mod-btn-shop-hoverup-available" href="./user.php?m=user&c=gift&a=add&gid=<?php echo ($v["id"]); ?>">立即兑换</a>
									</div>	
								</li>
							<?php else: ?>
								<li class="itemlist_item mod-floatblock">
									<a>
										<div class="item_pic">
											<img src="<?php echo ($v["url"]); ?>" alt="">
										</div>
										<p class="item_name">
											<?php echo ($v["title"]); ?>
										</p>
										<div class="flag"></div>
									</a>
									<p class="item_content">
										安全币<span class="item_cost"> <?php echo ($v["price"]); ?> </span>库存<span class="item_exchangednum"> <?php echo ($v["stock"]); ?> </span>个
									</p>
								</li><?php endif; endforeach; endif; ?>
                        </ul>

                        <div class="mod-pageflip">
                          <?php echo ($page); ?>
                        </div>

                    </div>
                </div>
            </div>
        </div>
		<script>
		function query_by_price(start_val,end_val){
							$.ajax({
								url: "/index.php?c=gift&a=sortdata",
								type: "POST",
								data: {operation:'price',start:start_val,end:end_val},
								success: function (data) {
									$("#mod-pageflip").remove();
									if(start_val == 'all'){
										$("#price_all").attr("class","list_item list_item-active");
										$("#price_0").attr("class","list_item");
										$("#price_100").attr("class","list_item");
										$("#price_300").attr("class","list_item");
										$("#price_800").attr("class","list_item");
										$("#price_1600").attr("class","list_item");
									} else if (start_val == '0'){
										$("#price_all").attr("class","list_item");
										$("#price_0").attr("class","list_item list_item-active");
										$("#price_100").attr("class","list_item");
										$("#price_300").attr("class","list_item");
										$("#price_800").attr("class","list_item");
										$("#price_1600").attr("class","list_item");
									} else if (start_val == '100'){
										$("#price_all").attr("class","list_item");
										$("#price_0").attr("class","list_item");
										$("#price_100").attr("class","list_item list_item-active");
										$("#price_300").attr("class","list_item");
										$("#price_800").attr("class","list_item");
										$("#price_1600").attr("class","list_item");
									} else if (start_val == '300'){
										$("#price_all").attr("class","list_item");
										$("#price_0").attr("class","list_item");
										$("#price_100").attr("class","list_item");
										$("#price_300").attr("class","list_item list_item-active");
										$("#price_800").attr("class","list_item");
										$("#price_1600").attr("class","list_item");
									} else if (start_val == '800'){
										$("#price_all").attr("class","list_item");
										$("#price_0").attr("class","list_item");
										$("#price_100").attr("class","list_item");
										$("#price_300").attr("class","list_item");
										$("#price_800").attr("class","list_item list_item-active");
										$("#price_1600").attr("class","list_item");
									} else if (start_val == '1600'){
										$("#price_all").attr("class","list_item");
										$("#price_0").attr("class","list_item");
										$("#price_100").attr("class","list_item");
										$("#price_300").attr("class","list_item");
										$("#price_800").attr("class","list_item");
										$("#price_1600").attr("class","list_item list_item-active");
									}
									if (data.status == "1") {
										$("#mod-itemlist-shop").empty();
										$.each(data.result,function(i,item){
											var index = i + 1;
											if(item['stock'] <= 0){
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p></li>");
											}else{
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a href=\"./user.php?m=user&c=gift&a=add&gid=" + item['id'] + "\" target=\"_blank\"><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p><div class=\"item_state\"><p class=\"state_text\">"+ item['title'] +"</p><a class=\"mod-btn mod-btn-shop-hoverup-available\" href=\"./user.php?m=user&c=gift&a=add&gid="+ item['id'] +"\">立即兑换</a></div></li>");
											}
										});
									}else{
										$("#mod-itemlist-shop").empty();
									}
								},
								error: function () {
									//$("#mod-itemlist-shop").css("display","block");
								}
							});
		}
		
		function query_by_category(category_val){
							$.ajax({
								url: "/index.php?c=gift&a=sortdata",
								type: "POST",
								data: {operation:'category',category:category_val},
								success: function (data) {
									$("#mod-pageflip").remove();
									if(category_val == 'all'){
										$("#category_all").attr("class","list_item list_item-active");
										$("#category_cash").attr("class","list_item");
										$("#category_digital").attr("class","list_item");
										$("#category_book").attr("class","list_item");
										$("#category_culture").attr("class","list_item");
										$("#category_others").attr("class","list_item");
									} else if (category_val =='cash'){
										$("#category_all").attr("class","list_item");
										$("#category_cash").attr("class","list_item list_item-active");
										$("#category_digital").attr("class","list_item");
										$("#category_book").attr("class","list_item");
										$("#category_culture").attr("class","list_item");
										$("#category_others").attr("class","list_item");
									} else if (category_val =='digital'){
										$("#category_all").attr("class","list_item");
										$("#category_cash").attr("class","list_item");
										$("#category_digital").attr("class","list_item list_item-active");
										$("#category_book").attr("class","list_item");
										$("#category_culture").attr("class","list_item");
										$("#category_others").attr("class","list_item");
									} else if (category_val =='book'){
										$("#category_all").attr("class","list_item");
										$("#category_cash").attr("class","list_item");
										$("#category_digital").attr("class","list_item");
										$("#category_book").attr("class","list_item list_item-active");
										$("#category_culture").attr("class","list_item");
										$("#category_others").attr("class","list_item");
									} else if (category_val =='culture'){
										$("#category_all").attr("class","list_item");
										$("#category_cash").attr("class","list_item");
										$("#category_digital").attr("class","list_item");
										$("#category_book").attr("class","list_item");
										$("#category_culture").attr("class","list_item list_item-active");
										$("#category_others").attr("class","list_item");
									} else if (category_val =='others'){
										$("#category_all").attr("class","list_item");
										$("#category_cash").attr("class","list_item");
										$("#category_digital").attr("class","list_item");
										$("#category_book").attr("class","list_item");
										$("#category_culture").attr("class","list_item");
										$("#category_others").attr("class","list_item list_item-active");
									}
									if (data.status == "1") {
										$("#mod-itemlist-shop").empty();
										$.each(data.result,function(i,item){
											var index = i + 1;
											if(item['stock'] <= 0){
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p></li>");
											}else{
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a href=\"./user.php?m=user&c=gift&a=add&gid=" + item['id'] + "\" target=\"_blank\"><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p><div class=\"item_state\"><p class=\"state_text\">"+ item['title'] +"</p><a class=\"mod-btn mod-btn-shop-hoverup-available\" href=\"./user.php?m=user&c=gift&a=add&gid="+ item['id'] +"\">立即兑换</a></div></li>");
											}
										});
									}else{
										$("#mod-itemlist-shop").empty();
									}
								},
								error: function () {
									//$("#address_fail").css("display","block");
								}
							});
		}
		
		function check_my_redeem(){
					var check_state = $("#check_my_redeem").attr('checked');
					
					if(check_state!='checked'){
						location.reload();
					}
					
					if(check_state == "checked"){
							$.ajax({
								url: "/user.php?c=gift&a=sortdata",
								type: "POST",
								data: {operation:'redeem'},
								success: function (data) {
									$("#mod-pageflip").remove();
									if (data.status == "1") {
										$("#mod-itemlist-shop").empty();
										$.each(data.result,function(i,item){
											var index = i + 1;
											if(item['stock'] <= 0){
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p></li>");
											}else{
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a href=\"./user.php?m=user&c=gift&a=add&gid=" + item['id'] + "\" target=\"_blank\"><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p><div class=\"item_state\"><p class=\"state_text\">"+ item['title'] +"</p><a class=\"mod-btn mod-btn-shop-hoverup-available\" href=\"./user.php?m=user&c=gift&a=add&gid="+ item['id'] +"\">立即兑换</a></div></li>");
											}
										});
									}else{
										$("#mod-itemlist-shop").empty();
									}
								},
								error: function () {
									//$("#address_fail").css("display","block");
								}
							});
					} else{
						$("#category_all").trigger("click");
					}
		}
		
		function order_by_price(){
					var order_val = $("#order_val").attr('order');
					if(order_val == "desc"){
							$.ajax({
								url: "/index.php?c=gift&a=sortdata",
								type: "POST",
								data: {operation:'order',order:'asc'},
								success: function (data) {
									$("#mod-pageflip").remove();
									if (data.status == "1") {
										$("#mod-itemlist-shop").empty();
										$("#suggested_val").attr('class','select_item');
										$("#order_val").attr('class','select_item select_item-active');
										$.each(data.result,function(i,item){
											var index = i + 1;
											if(item['stock'] <= 0){
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p></li>");
											}else{
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a href=\"./user.php?m=user&c=gift&a=add&gid=" + item['id'] + "\" target=\"_blank\"><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p><div class=\"item_state\"><p class=\"state_text\">"+ item['title'] +"</p><a class=\"mod-btn mod-btn-shop-hoverup-available\" href=\"./user.php?m=user&c=gift&a=add&gid="+ item['id'] +"\">立即兑换</a></div></li>");
											}
										});
										$("#order_val").attr('order','asc');
									}else{
										$("#mod-itemlist-shop").empty();
										$("#suggested_val").attr('class','select_item');
										$("#order_val").attr('class','select_item select_item-active');
										$("#order_val").attr('order','asc');
									}
								},
								error: function () {
									//$("#address_fail").css("display","block");
								}
							});
					} else{
						$.ajax({
								url: "/index.php?c=gift&a=sortdata",
								type: "POST",
								data: {operation:'order',order:'desc'},
								success: function (data) {
									$("#mod-pageflip").remove();
									if (data.status == "1") {
										$("#mod-itemlist-shop").empty();
										$("#suggested_val").attr('class','select_item');
										$("#order_val").attr('class','select_item select_item-active');
										$.each(data.result,function(i,item){
											var index = i + 1;
											if(item['stock'] <= 0){
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p></li>");
											}else{
												$("#mod-itemlist-shop").append("<li class=\"itemlist_item mod-floatblock\"><a href=\"./user.php?m=user&c=gift&a=add&gid=" + item['id'] + "\" target=\"_blank\"><div class=\"item_pic\"><img src=\""+item['url']+"\" alt=\"\"></div><p class=\"item_name\">" + item['title'] +"</p><div class=\"flag\"></div></a><p class=\"item_content\">安全币<span class=\"item_cost\">" + item['price'] + "</span>库存<span class=\"item_exchangednum\"> " + item['stock'] + "</span>个</p><div class=\"item_state\"><p class=\"state_text\">"+ item['title'] +"</p><a class=\"mod-btn mod-btn-shop-hoverup-available\" href=\"./user.php?m=user&c=gift&a=add&gid="+ item['id'] +"\">立即兑换</a></div></li>");
											}
										});
										$("#order_val").attr('order','desc');
									}else{
										$("#order_val").attr('order','desc');
										$("#suggested_val").attr('class','select_item');
										$("#order_val").attr('class','select_item select_item-active');
										$("#mod-itemlist-shop").empty();
									}
								},
								error: function () {
									//$("#address_fail").css("display","block");
								}
							});
					}
		}
        </script>
 <!-- footer -->
        <div class="footer" style="bottom:0px;left:0px;">
            <div>
                <div class="footer_about">
                    <p class="about_link">
                        <a href="<?php echo ($site_about); ?>" target="_blank">关于<?php echo ($site_name_cn); ?></a>
                        |
                        <a href="<?php echo ($site_career); ?>">加入我们</a>
                        |
                        <a href="/user.php?m=user&c=post&a=add">报告漏洞</a>
                    </p>
                    <p class="about_copyright">
                        <span>Copyright &copy; <?php echo date('Y'); ?> <?php echo ($site_copyright); ?>. All Rights Reserved</span>
						<span>Powered by <a href="https://security.tencent.com/index.php/xsrc">Tencent xSRC</a></span>
                    </p>
                </div>

                <div class="footer_contact">
                    <a class="contact_icon-email" href="mailto:<?php echo ($site_email); ?>"><i></i><span>专用邮箱</span>|</a>
                    <a class="contact_icon-weixin mod-qrcode" href="">
                        <i></i><span>微信公众号</span>
                        <div class="qrcode">
                            <div class="qrcode_pic">
                                <img src="<?php echo ($site_wechat); ?>" alt="">
                            </div>
                            <span class="qrcode_text">扫一扫关注公众号</span>
                        </div>
                    </a>
                </div>
            </div>
        </div>

        <script src="/Public/Index/js/jquery-1.7.2.min.js"></script>
        <script src="/Public/Index/js/test.js"></script>
		<!--xSRC首页统计，正式运营可删除-->
		<script>
		   var _mtac = {};
		   (function() {
			   var mta = document.createElement("script");
			   mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
			   mta.setAttribute("name", "MTAH5");
			   mta.setAttribute("sid", "500696164");
			   var s = document.getElementsByTagName("script")[0];
			   s.parentNode.insertBefore(mta, s);
			})();
		</script>
		
		<?php echo (htmlspecialchars_decode($site_analytics)); ?>
		
    </body>
</html>